package com.voiceblog.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Blog entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Blog implements java.io.Serializable {

	// Fields

	private Integer articleId;
	private Users users;
	private String articleTitle;
	private String articleContent;
	private Date articlePublishDate;
	private Integer visitNumber;
	private String voice;
	private Set comments = new HashSet(0);

	// Constructors

	/** default constructor */
	public Blog() {
	}

	/** minimal constructor */
	public Blog(Users users, String articleTitle, Date articlePublishDate,
			Integer visitNumber) {
		this.users = users;
		this.articleTitle = articleTitle;
		this.articlePublishDate = articlePublishDate;
		this.visitNumber = visitNumber;
	}

	/** full constructor */
	public Blog(Users users, String articleTitle, String articleContent,
			Date articlePublishDate, Integer visitNumber, String voice,
			Set comments) {
		this.users = users;
		this.articleTitle = articleTitle;
		this.articleContent = articleContent;
		this.articlePublishDate = articlePublishDate;
		this.visitNumber = visitNumber;
		this.voice = voice;
		this.comments = comments;
	}

	// Property accessors

	public Integer getArticleId() {
		return this.articleId;
	}

	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public String getArticleTitle() {
		return this.articleTitle;
	}

	public void setArticleTitle(String articleTitle) {
		this.articleTitle = articleTitle;
	}

	public String getArticleContent() {
		return this.articleContent;
	}

	public void setArticleContent(String articleContent) {
		this.articleContent = articleContent;
	}

	public Date getArticlePublishDate() {
		return this.articlePublishDate;
	}

	public void setArticlePublishDate(Date articlePublishDate) {
		this.articlePublishDate = articlePublishDate;
	}

	public Integer getVisitNumber() {
		return this.visitNumber;
	}

	public void setVisitNumber(Integer visitNumber) {
		this.visitNumber = visitNumber;
	}

	public String getVoice() {
		return this.voice;
	}

	public void setVoice(String voice) {
		this.voice = voice;
	}

	public Set getComments() {
		return this.comments;
	}

	public void setComments(Set comments) {
		this.comments = comments;
	}

}